//
//  JJReactNativeService.h
//  ClaimPlatform_RN
//
//  Created by hamilyjing on 06/04/2018.
//  Copyright © 2018 jj. All rights reserved.
//

#import "JJService.h"

@class JJReactNativeModel;
@class JJBaseRequest;

@interface JJReactNativeService : JJService

- (void)requestRNWithOptions:(NSDictionary *)options
    networkSuccessResponse:(void (^)(JJReactNativeModel *object, id otherinfo))networkSuccessResponse
       networkFailResponse:(void (^)(NSError *error, id otherInfo))networkFailResponse;

- (NSString *)cacheRNWithOptions:(NSDictionary *)options;

- (void)saveCacheRNWithOptions:(NSDictionary *)options obj:(NSString *)obj;

- (void)removeCacheRNWithOptions:(NSDictionary *)options;

- (JJBaseRequest *)requestForReactNativeWithIdentity:(NSString *)identity
                                           parameters:(NSDictionary *)parameters
                                         isEncryption:(BOOL)isEncryption
                                           modelClass:(Class)modelClass
                                       isSaveToMemory:(BOOL)isSaveToMemory
                                         isSaveToDisk:(BOOL)isSaveToDisk;

@end
